Skip to content

Conversation

gounthar
Copy link
Contributor

@gounthar gounthar commented Sep 17, 2025

  • Add JDK25 version variable (25+9-ea-beta) to docker-bake.hcl
  • Update jlink configuration for JDK25 with specific modules
  • Create separate Windows JDK build matrix excluding JDK25
  • Support JDK25 on Alpine and Debian Linux platforms only

Testing done

make build

Submitter checklist

  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Ensure you have provided tests that demonstrate the feature works or the issue is fixed

  - Add JDK25 version variable (25+9-ea-beta) to docker-bake.hcl
  - Update jlink configuration for JDK25 with specific modules
  - Create separate Windows JDK build matrix excluding JDK25
  - Support JDK25 on Alpine and Debian Linux platforms only
@gounthar gounthar requested a review from a team as a code owner September 17, 2025 12:39
@lemeurherve lemeurherve self-assigned this Oct 3, 2025
Copy link
Member

@lemeurherve lemeurherve left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, made some suggestions, LGTM otherwise!

FTR, I ran make test locally (including those suggestions) with success.

Comment on lines +51 to +53
# JDK 25 switches to a minimal module set for smaller images. Override with JLINK_MODULES to restore broader compatibility if needed.
"25"*) mod_list="${JLINK_MODULES:-java.base,java.logging,java.xml,java.management,java.net.http,jdk.crypto.ec}"; \
set -- "--compress=zip-6" --add-modules "$mod_list" ;; \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# JDK 25 switches to a minimal module set for smaller images. Override with JLINK_MODULES to restore broader compatibility if needed.
"25"*) mod_list="${JLINK_MODULES:-java.base,java.logging,java.xml,java.management,java.net.http,jdk.crypto.ec}"; \
set -- "--compress=zip-6" --add-modules "$mod_list" ;; \
# JDK 25 switches to a minimal module set for smaller images
"25"*) set -- "--compress=zip-6" --add-modules "java.base,java.logging,java.xml,java.management,java.net.http,jdk.crypto.ec" ;; \

Let's keep in simple for now like what's in the docker-agent which already has JDK25 images.

Comment on lines +46 to +47
ARG JLINK_MODULES

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
ARG JLINK_MODULES

See above

Comment on lines +45 to +46
ARG JLINK_MODULES

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
ARG JLINK_MODULES

ditto

Comment on lines +53 to +55
# JDK 25 switches to a minimal module set for smaller images. Override with JLINK_MODULES to restore broader compatibility if needed.
"25"*) mod_list="${JLINK_MODULES:-java.base,java.logging,java.xml,java.management,java.net.http,jdk.crypto.ec}"; \
set -- "--compress=zip-6" --add-modules "$mod_list" ;; \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# JDK 25 switches to a minimal module set for smaller images. Override with JLINK_MODULES to restore broader compatibility if needed.
"25"*) mod_list="${JLINK_MODULES:-java.base,java.logging,java.xml,java.management,java.net.http,jdk.crypto.ec}"; \
set -- "--compress=zip-6" --add-modules "$mod_list" ;; \
# JDK 25 switches to a minimal module set for smaller images
"25"*) set -- "--compress=zip-6" --add-modules "java.base,java.logging,java.xml,java.management,java.net.http,jdk.crypto.ec" ;; \

ditto

}

variable "JAVA25_VERSION" {
default = "25+9-ea-beta"
Copy link
Member

@lemeurherve lemeurherve Oct 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
default = "25+9-ea-beta"
default = "25_36"

Let's directly use the GA version and skip the EA beta altogether.

Could you rename your PR if you accept this suggestion please?
feat: add JDK25 Linux images

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants